package Level_two;

import java.util.Scanner;

public class Six {
    public static void main(String[] args) {
        System.out.println("请输入第一个整数：");
        int num1 = new Scanner(System.in).nextInt();
        System.out.println("请输入第二个整数：");
        int num2 = new Scanner(System.in).nextInt();
        System.out.println("请输入您要进行的运算(0:表示加法运算,1:表示减法运算,2:表示乘法运算,3:表示除法运算)：");
        int num3 = new Scanner(System.in).nextInt();
        switch (num3) {
            case 0:
                System.out.println(num1 + "+" + num2 + "=" + (num1 + num2));
                break;
            case 1:
                System.out.println(num1 + "-" + num2 + "=" + (num1 - num2));
                break;
            case 2:
                System.out.println(num1 + "*" + num2 + "=" + (num1 * num2));
                break;
            case 3:
                System.out.println(num1 + "/" + num2 + "=" + (num1 / num2));
                break;
        }
    }
}

